<?php

/**
 * @author OK MEN
 * @copyright 2013
 */

class UserCover extends CWidget
{
    public function init()
    {
        parent::init();
    }

    public function run()
	{	
        if(isset($_GET['id'])){
            $member_id = $_GET['id'];
            $usercover = MemberCovers::model()->findByAttributes(array('member_id'=>$member_id, 'status'=>'V', 'type'=>'C'));
            $this->render('usercover', array("usercover"=>$usercover, 'member_id'=>$member_id)); 
        }       
    }
}

?>